﻿@model PagedCollection<Content>
@{
    var hotContents = ViewData["HotContents"] as IEnumerable<Content>;//热门帖子
    var hotRelatedContent = ViewData["HotRelatedContent"] as IEnumerable<Content>;//当前分类的其他帖子
}

<div class="row">
        <div class="col-8">
            <h2>@ViewBag.Title</h2>

            @Html.Partial("_ListGroup", Model.Items)
            <div class="mt-3">
                @Html.Pagination(Model)
            </div>
        </div>
        <div class="col-4">
            <div class="mt-3 mb-3 border bg-light">
                <div class="border-bottom m-3"><b>相关热门</b></div>
                <div class="col">
                    @Html.Partial("_ListUnstyled", hotRelatedContent)
                </div>
            </div>
            <div class="mt-3 mb-3 border bg-light">
                <div class="border-bottom m-3"><b>热门排行</b></div>
                <div class="col">
                    @Html.Partial("_ListUnstyled", hotContents)
                </div>
            </div>
        </div>
    </div>